export default {
  namespace: 'dashboard',

  state: {
    title: ''
  },

  effects: {
    *fetchDashboard(_, { call, put }) {
      yield put({
        type: 'saveDashboardData',
        payload: {
          title: 'dashboard title'
        }
      })
    }
  },

  reducers: {
    saveDashboardData(state, { payload }) {
      return {
        ...state,
        title: payload.title
      }
    }
  }
}
